import request from '@/utils/request'

// 查询中途站列表
export function listWay(query) {
  return request({
    url: '/bus/way/list',
    method: 'get',
    params: query
  })
}

// 查询中途站详细
export function getWay(buswayID) {
  return request({
    url: '/bus/way/' + buswayID,
    method: 'get'
  })
}

// 新增中途站
export function addWay(data) {
  return request({
    url: '/bus/way',
    method: 'post',
    data: data
  })
}

// 修改中途站
export function updateWay(data) {
  return request({
    url: '/bus/way',
    method: 'put',
    data: data
  })
}

// 删除中途站
export function delWay(buswayID) {
  return request({
    url: '/bus/way/' + buswayID,
    method: 'delete'
  })
}
